package com.jluzh.bean;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.ws.rs.FormParam;

/**
 * @author EvanHuang
 * @date 11/5/2018 9:32 AM
 * @since
 */
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class Employee {
    public Employee(String name) {
        this.name = name;
    }

    private Long id;
    @FormParam("name")
    private String name;
    @FormParam("age")
    private int age;

    public static Employee valueOf(String name){
        return new Employee(name);
    }
}
